package com.cn.lyl.dao;

import com.cn.lyl.model.ServiceModel;

import java.util.List;

public interface ServiceDao {

    int add(ServiceModel serviceModel);

    int update(ServiceModel serviceModel);

    int delete(ServiceModel serviceModel);

    ServiceModel  findById(int id);

    List<ServiceModel> findAll(ServiceModel serviceModel);

    ServiceModel findNewest();

    int countFindAll(ServiceModel serviceModel);
}
